package com.iori.springbootdemo.controller;

import com.iori.springbootdemo.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping("version")
    public String version(){
        return testService.version();
    }
}
